package com.zjff.mobiletwo.controller;

import jakarta.servlet.http.HttpSession;

public class BaseController {
    protected final Integer getuidFromSession(HttpSession session){
        return Integer.valueOf(session.getAttribute("id")
                .toString());
    }
    protected final String getUsernameFromSession(HttpSession session){
        return session.getAttribute("username").toString();
    }
}
